﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Portal/Master/Portal.Master" AutoEventWireup="true" CodeBehind="OrderDetail.aspx.cs" Inherits="Besture.UI.Portal.UserCenter.OrderDetail" %>

<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="Besture.Bll" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <link rel="stylesheet" href="/Resource/css/normalize.css" />
    <link rel="stylesheet" href="/Resource/css/common.css" />
    <link rel="stylesheet" href="/Resource/css/base.css" />
    <link href="/Resource/css/member.css" rel="stylesheet" />

    <link href="/Resource/source/DatePicker/date.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="main member ">
        <div class="vipbanner">
        </div>
        <div class="container">
            <div class="layout_side">
                <div class="side_nav">
                    <cms:UserNav runat="server" ID="UserNav" />
                </div>
            </div>
            <div class="layout_main">
                <div class="vipcon">
                    <div class="viptitle">
                        订单详情
                            <span class="fright">
                                <img src="/Resource/images/email2.png" />&nbsp;&nbsp;联系我们&nbsp;&nbsp;
                                <a href="mailto:liangli@163.com" target="_blank">liangli@xiangsheng.com</a> </span>
                    </div>
                </div>

                <br class="clear" />
                <div class="vipcon_main_body">
                    <div class="vipcon_main_body_top">订单信息</div>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">订单号</div>
                        <div class="number"><%=OrderMode!=null?OrderMode.OrderNo:"" %></div>
                        <br class="clear" />
                    </div>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">预定日期</div>
                        <div class="number"><%=OrderMode!=null?OrderMode.CreateTime.ToString():"" %></div>
                        <br class="clear" />
                    </div>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">预定方式</div>
                        <div class="number">网站预订</div>
                        <br class="clear" />
                    </div>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">支付情况</div>
                        <div class="number"><%=SOrderStatusName %></div>
                        <br class="clear" />
                    </div>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">酒店预订号</div>
                        <div class="number"><%=sReservationNumber %></div>
                        <br class="clear" />
                    </div>
                    <br class="clear" />
                    <div class="vipcon_main_body_right">
                        <div class="sum">总金额：</div>
                        <div class="money">
                            <span class="num"><%=OrderMode!=null?OrderMode.CopePrice.ToString():"" %></span>
                        </div>
                    </div>

                </div>
                <div class="vipcon_main_body">
                    <div class="vipcon_main_body_top">入住信息</div>
                    <div class="title"><%=SHotels %></div>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">房型</div>
                        <div class="number"><%=SRoom %></div>
                        <br class="clear" />
                    </div>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">入住日期</div>
                        <div class="number">
                            <%=OrderMode!=null? Convert.ToDateTime(OrderMode.CheckDate).ToString("yyyy-MM-dd"):"" %> 至 
                            <%=OrderMode!=null?  Convert.ToDateTime(OrderMode.DepartureDate).ToString("yyyy-MM-dd") :"" %>
                        </div>
                        <br class="clear" />
                    </div>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">数量</div>
                        <div class="number"><%=OrderMode!=null?OrderMode.RoomQuantity.ToString():"" %>间</div>
                        <br class="clear" />
                    </div>
                    <% foreach (DataRow dr in DtPassengerOrder.Rows)
                       { %>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">住客信息</div>
                        <div class="number"><%=dr["PassengerName"]%></div>
                        <br class="clear" />
                    </div>
                    <%}%>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">早餐</div>
                        <div class="number">有</div>
                        <br class="clear" />
                    </div>
                </div>
                <br class="clear" />
                <div class="vipcon_main_body">
                    <div class="vipcon_main_body_top">联系信息</div>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">联系信息</div>
                        <div class="number"><%=OrderMode!=null?OrderMode.ContactName.ToString():"" %></div>
                        <br class="clear" />
                    </div>
                    <div class="vipcon_main_body_content">
                        <div class="orderid">联系手机</div>
                        <div class="number"><%=OrderMode!=null?OrderMode.ContactPhone.ToString():"" %></div>
                        <br class="clear" />
                    </div>
                </div>
                <!--item-->
                <div style="width: 765px; margin: 0 auto;">
                    <table class="tab_content">
                        <tr class="item_title">
                            <td colspan="7">
                                <%--<label><input type="checkbox" class="itme_all" /></label>
                                <a href="#" class="item_del">删除订单</a>--%>
                                <span class="oid">订单号：<span class="num"><%=OrderMode!=null?OrderMode.OrderNo.ToString():"" %></span></span>
                                <span class="date">预定日期：<%=OrderMode!=null?OrderMode.CreateTime.ToString():"" %></span>
                            </td>
                        </tr>
                        <tr class="itme_content">
                            <td class="td1">
                                <a href="/Portal/Hotel/ProductDetail.aspx?hotelid=<%=OrderMode.ID %>"><%=OrderMode!=null? new HotelsDac().GetModel(OrderMode.HotelsID).HotelsName :"" %></a>
                            </td>
                            <td><%=OrderMode!=null? new RoomDac().GetModel(OrderMode.RoomID).RoomName :"" %>
                            </td>
                            <td><%=OrderMode!=null?OrderMode.ContactName.ToString():"" %>
                            </td>
                            <td><%=OrderMode!=null?OrderMode.CreateTime.ToString():"" %>
                            </td>
                            <td class="td5">￥<%=OrderMode!=null?OrderMode.CopePrice.ToString():"" %>
                            </td>
                            <td class="td6">
                                <span><%= GetOrderStatus(OrderMode.OrderStatus) %></span>
                                <br />
                            </td>
                            <td class="td7">
                                <span <%# (Convert.ToDateTime(OrderMode.CheckDate) >= DateTime.Now.AddDays(-3)
                                        && Convert.ToDateTime(OrderMode.DepartureDate) <= DateTime.Now) ? "style='display:block'":"style='display:none'" %>>
                                    <a href="javascript:void(0);" class="send_email">已担保订单入住前三天无法更改</a>
                                    <img src="/Resource/images/tan.png" />
                                </span>
                                <span <%# (Convert.ToDateTime(OrderMode.CheckDate) >= DateTime.Now.AddDays(-3)
                                        && Convert.ToDateTime(OrderMode.DepartureDate) <= DateTime.Now) ? "style='display:none'":"style='display:block'" %>>
                                    <a href="mailto:<%#Eval("ContactEmail") %>" class="send_email">点击更改即发送邮件到操作人邮箱</a>
                                    <a href="mailto:<%#Eval("ContactEmail") %>" class="update">更改</a>
                                    <a href="javascript:void(0);" class="update">取消</a>
                                    <a href="mailto:<%#Eval("ContactEmail") %>" class="email">liangli@xs.com</a>
                                </span>
                            </td>
                        </tr>
                    </table>
                </div>

                <br class="clear" />
                <br class="clear" />
            </div>
            <br class="clear" />

        </div>
    </div>
    <!-- //main -->

</asp:Content>
